tools/ocaml: GC parameter tuning
authorEdwin Török <edvin.torok@citrix.com>
Wed, 12 Oct 2022 18:13:07 +0000 (19:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 13:05:44 +0000 (13:05 +0000)
commit4a8bacff20b857ca0d628ef5525877ade11f2a42
tree7fe03a981539507468164e22f6f4fd0cfd8fbe11
parent329f4d1a6535c6c5a34025ca0d03fc5c7228fcff
tools/ocaml: GC parameter tuning

By default the OCaml garbage collector would return memory to the OS only
after unused memory is 5x live memory.  Tweak this to 120% instead, which
would match the major GC speed.

This is part of XSA-326.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/xenstored.ml